package com.xuzao.developer.controller;

import com.xuzao.developer.tools.entity.Pager;

/**
 * @author xuzao
 * @description
 * @date 2019-09-04 10:24
 */
public class BaseController {

    public void initPager(Pager pager){
        if (pager.getPageSize() == null){
            pager.setPageSize(20);
        }
        if (pager.getPageCurrent()==null){
            pager.setPageCurrent(1);
        }
    }
}
